package com.wings4.school.exam
import com.wings4.school.academicconfiguration.AcademicYear
import com.wings4.school.academicconfiguration.AcademicSection
import com.wings4.school.academicconfiguration.AcademicClasses
import com.wings4.school.academicconfiguration.ClassSection
import com.wings4.school.student.Student
class ExamTermResult {
    double examMarks;
    double obtainMarks;
    double revisedMark;
    double additionalMarks;
    double percentageCount;
    boolean status;

    static belongsTo = [academicYear:AcademicYear,academicSection:AcademicSection,academicClass:AcademicClasses,
            classSection:ClassSection,examTerm:ExamTerm,examCategory:ExamCategory,student:Student]

    static constraints = {
        obtainMarks(nullable: true);
        revisedMark(nullable: true);
        additionalMarks(nullable: true);
        percentageCount(nullable: true);
    }
}
